<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'album-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="help-block">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
        
        <?php echo $form->textFieldRow($model,'title',array('class'=>'span4','maxlength'=>150)); ?>
        
	<?php 
              if($model->isNewRecord){
                   echo $form->dropDownListRow($model,'id',
                        Album::model()->getAlbumCotegory(),
                        array('prompt'=>'Select Album Category','class'=>'span4')); 
              }else{
                   echo $form->dropDownListRow($model,'id',
                        Album::model()->getAlbumCotegory(),
                        array('prompt'=>'Select Album Category','readonly'=>'readonly','class'=>'span4')); 
              }
             
        ?>


	<?php echo $form->textAreaRow($model,'description',array('rows'=>6, 'cols'=>50, 'class'=>'span4')); ?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
